package com.woniu.mapper;

import com.woniu.entity.FlowerOrder;

import com.woniu.vo.OrderVoCZT;

import org.apache.ibatis.annotations.Param;
import com.woniu.vo.FlowerOrderVo;

import com.woniu.vo.OrderVo;

import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface FlowerOrderMapper extends Mapper<FlowerOrder> {

    List<FlowerOrderVo> selectFlowerOrderByMerchant(String newOrderId, String accountName,Integer status, String startTime,String endTime);
    
   // List<FlowerOrderVo> selectFlowerOrderByMerchant();
    FlowerOrderVo selectFlowerOrderByOrderId(String newOrderId);

    List<OrderVo> selectAllOrder() throws Exception;
    List<OrderVo> selectOrderByConditions(OrderVo orderVo) throws Exception;

    FlowerOrderVo selectTotal(String startTime,String endTime);
    
    List<FlowerOrderVo> selectNewFlowerOrder();
    
    OrderVoCZT selectOrderByOrderId(String orderId);
    List<OrderVoCZT> selectAllOrderByAccountId(@Param("accountId") int accountId,
                                               @Param("orderId") String orderId,
                                               @Param("isComment") byte isComment,
                                               @Param("startTime") String startTime,
                                               @Param("endTime") String endTime,
                                               @Param("status") int status);
}